


timer clear 1
timer on 1
set more off
 
*********************************** LIST OF PROGRAMS, TO BE RUN IN THIS ORDER *********************************** 
/*
*** shell files (called internally)
 do "clean-builder-names.do"
 do "trim-builder-names.do" 
 do "clean-lender-names.do" 
 do "scrub-controls.do"
 do "run-results-output.do"
 do "summ-stats.do"
 do "make-builder-concentration.do"
 do "merge-MLS-deeds.do" 
 do "load-compustat.do"  
 do "merge-compu-dealscan.do" 
 do "sdc-note-rates.do" 
 do "persistance-resales.do"
*/ 
*** 1. MLS cleaning and analysis
 do "clean-listings-newhomes.do"  
 do "elasticity-listing.do"  

*** 2. Zillow house price indices 
 do "create-county-price-index.do"   
 do "create-zip-price-index.do"   

*** 3. CoreLogic builder home sales: clean and analyze, then create shock measure 
  do "create-builder-trans-data.do"    
  do "create-house-price-indices.do" /* make county level house price change variables, to be used in builder shock measure */
  do "merge-builder-data-price-indices.do"
  do "create-county-shock.do"  /* make shock at county-builder level (for specification in differences) */
  do "create-trans-shock.do"  /* make shock at home transaction level */

*** 4. Compustat: financial analysis  
 do "master-create-findata.do"  

*** 5. regression analysis
 do "regressions.do"   // uses "run-results-output.do"
 do "spillover-regressions.do"
 
*** 6. validation 
 do "validate-builder-distress.do"   
 do "validate-by-permits.do"
 do "validate-market-shares.do" 

timer off 1
timer list 1
